<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>setTimeout</title>  
</head>  
<body>  
    <table id="myTable">
    <tbody>
       <tr>
           <td>aa</td>
				<td>bb</td>
				<td>cc</td>
      </tr>
       <tr>
       <td>aa</td>
       <td>aa</td>
       <td>aa</td>
</tr>
   </tbody>
  </table>
    
</body>  
<script>
 var tableObj =    document.getElementById("myTable");
 for (var i = 0; i < tableObj.rows.length; i++) {    //遍历Table的所有Row
     for (var j = 0; j < tableObj.rows[i].cells.length; j++) {   //遍历Row中的每一列
         tableInfo = tableObj.rows[i].cells[j].innerText;   //获取Table中单元格的内容
         alert(tableInfo);
     }
 
 }
</script>
</html>  
  
  
